<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>对象的创建使用-Object</title>
		<script type="text/javascript">
			//创建对象
			let student = new Object();
			//给对象添加属性和方法
			student.stuName = "张三";
			student.age = 18;
			student.eat = function(){
				console.log("我喜欢吃西瓜");
			}
			
			console.log(student);
			console.log(student.eat);
		</script>
	</head>
	<body>
	</body>
</html>